sign_for 명령은 다중 서명된 트랜잭션에 대해 하나의 서명을 제공합니다.
기본적으로 이 메소드는 관리자 전용입니다. 서버 관리자가 공개 서명을 사용하도록 설정한 경우 공개 방법으로 사용할 수 있습니다.
이 명령을 사용하려면 다중 서명 수정이 활성화되어 있어야 합니다.
WebSocket JSON-RPC Commandline
Copy {
"id" : "sign_for_example" ,
"command" : "sign_for" ,
"account" : "rLFd1FzHMScFhLsXeaxStzv3UC97QHGAbM" ,
"seed" : "s████████████████████████████" ,
"key_type" : "ed25519" ,
"tx_json" : {
"TransactionType" : "TrustSet" ,
"Account" : "rEuLyBCvcw4CFmzv8RepSiAoNgF8tTGJQC" ,
"Flags" : 262144 ,
"LimitAmount" : {
"currency" : "USD" ,
"issuer" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh" ,
"value" : "100"
} ,
"Sequence" : 2 ,
"SigningPubKey" : "" ,
"Fee" : "30000"
}
}
Copy {
"method" : "sign_for" ,
"params" : [{
"account" : "rLFd1FzHMScFhLsXeaxStzv3UC97QHGAbM" ,
"seed" : "s████████████████████████████" ,
"key_type" : "ed25519" ,
"tx_json" : {
"TransactionType" : "TrustSet" ,
"Account" : "rEuLyBCvcw4CFmzv8RepSiAoNgF8tTGJQC" ,
"Flags" : 262144 ,
"LimitAmount" : {
"currency" : "USD" ,
"issuer" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh" ,
"value" : "100"
} ,
"Sequence" : 2 ,
"SigningPubKey" : "" ,
"Fee" : "30000"
}
}]
}
Copy #Syntax: rippled sign_for <signer_address> <signer_secret> [offline]
rippled sign_for rsA 2 LpzuawewSBQXkiju 3 YQTMzW 13 pAAdW s████████████████████████████ '{
"TransactionType" : "TrustSet" ,
"Account" : "rEuLyBCvcw4CFmzv8RepSiAoNgF8tTGJQC" ,
"Flags" : 262144 ,
"LimitAmount" : {
"currency" : "USD" ,
"issuer" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh" ,
"value" : "100"
} ,
"Sequence" : 2 ,
"SigningPubKey" : "" ,
"Fee" : "30000"
}'
WebSocket JSON-RPC Commandline
Copy {
"id" : "sign_for_example" ,
"status" : "success" ,
"type" : "response" ,
"result" : {
"tx_blob": "1200142200040000240000000263D5038D7EA4C680000000000000000000000000005553440000000000B5F762798A53D543A014CAF8B297CFF8F2F937E868400000000000753073008114A3780F5CB5A44D366520FC44055E8ED44D9A2270F3E0107321EDDF4ECB8F34A168143B928D48EFE625501FB8552403BBBD3FC038A5788951D7707440C3DCA3FEDE6D785398EEAB10A46B44047FF1B0863FC4313051FB292C991D1E3A9878FABB301128FE4F86F3D8BE4706D53FA97F5536DBD31AF14CD83A5ACDEB068114D96CB910955AB40A0E987EEE82BB3CEDD4441AAAE1F1",
"tx_json" : {
"Account" : "rEuLyBCvcw4CFmzv8RepSiAoNgF8tTGJQC" ,
"Fee" : "30000" ,
"Flags" : 262144 ,
"LimitAmount" : {
"currency" : "USD" ,
"issuer" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh" ,
"value" : "100"
} ,
"Sequence" : 2 ,
"Signers" : [
{
"Signer" : {
"Account" : "rLFd1FzHMScFhLsXeaxStzv3UC97QHGAbM" ,
"SigningPubKey" : "EDDF4ECB8F34A168143B928D48EFE625501FB8552403BBBD3FC038A5788951D770" ,
"TxnSignature" : "C3DCA3FEDE6D785398EEAB10A46B44047FF1B0863FC4313051FB292C991D1E3A9878FABB301128FE4F86F3D8BE4706D53FA97F5536DBD31AF14CD83A5ACDEB06"
}
}
] ,
"SigningPubKey" : "" ,
"TransactionType" : "TrustSet" ,
"hash" : "5216A13A3E3CF662352F0B430C7D82B7450415B6883DD428B5EC1DF1DE45DD8C"
}
}
}
Copy 200 OK
{
"result" : {
"status" : "success" ,
"tx_blob" : "1200142200040000240000000263D5038D7EA4C680000000000000000000000000005553440000000000B5F762798A53D543A014CAF8B297CFF8F2F937E868400000000000753073008114A3780F5CB5A44D366520FC44055E8ED44D9A2270F3E010732102B3EC4E5DD96029A647CFA20DA07FE1F85296505552CCAC114087E66B46BD77DF744730450221009C195DBBF7967E223D8626CA19CF02073667F2B22E206727BFE848FF42BEAC8A022048C323B0BED19A988BDBEFA974B6DE8AA9DCAE250AA82BBD1221787032A864E58114204288D2E47F8EF6C99BCC457966320D12409711E1F1",
"tx_json" : {
"Account" : "rEuLyBCvcw4CFmzv8RepSiAoNgF8tTGJQC" ,
"Fee" : "30000" ,
"Flags" : 262144 ,
"LimitAmount" : {
"currency" : "USD" ,
"issuer" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh" ,
"value" : "100"
} ,
"Sequence" : 2 ,
"Signers" : [
{
"Signer" : {
"Account" : "rsA2LpzuawewSBQXkiju3YQTMzW13pAAdW" ,
"SigningPubKey" : "02B3EC4E5DD96029A647CFA20DA07FE1F85296505552CCAC114087E66B46BD77DF" ,
"TxnSignature" : "30450221009C195DBBF7967E223D8626CA19CF02073667F2B22E206727BFE848FF42BEAC8A022048C323B0BED19A988BDBEFA974B6DE8AA9DCAE250AA82BBD1221787032A864E5"
}
}
] ,
"SigningPubKey" : "" ,
"TransactionType" : "TrustSet" ,
"hash" : "A94A6417D1A7AAB059822B894E13D322ED3712F7212CE9257801F96DE6C3F6AE"
}
}
}
Copy Loading: "/etc/rippled.cfg"
Connecting to 127.0 . 0.1 : 5005
{
"result" : {
"status" : "success" ,
"tx_blob" : "1200142200040000240000000263D5038D7EA4C680000000000000000000000000005553440000000000B5F762798A53D543A014CAF8B297CFF8F2F937E868400000000000753073008114A3780F5CB5A44D366520FC44055E8ED44D9A2270F3E010732102B3EC4E5DD96029A647CFA20DA07FE1F85296505552CCAC114087E66B46BD77DF744730450221009C195DBBF7967E223D8626CA19CF02073667F2B22E206727BFE848FF42BEAC8A022048C323B0BED19A988BDBEFA974B6DE8AA9DCAE250AA82BBD1221787032A864E58114204288D2E47F8EF6C99BCC457966320D12409711E1F1",
"tx_json" : {
"Account" : "rEuLyBCvcw4CFmzv8RepSiAoNgF8tTGJQC" ,
"Fee" : "30000" ,
"Flags" : 262144 ,
"LimitAmount" : {
"currency" : "USD" ,
"issuer" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh" ,
"value" : "100"
} ,
"Sequence" : 2 ,
"Signers" : [
{
"Signer" : {
"Account" : "rsA2LpzuawewSBQXkiju3YQTMzW13pAAdW" ,
"SigningPubKey" : "02B3EC4E5DD96029A647CFA20DA07FE1F85296505552CCAC114087E66B46BD77DF" ,
"TxnSignature" : "30450221009C195DBBF7967E223D8626CA19CF02073667F2B22E206727BFE848FF42BEAC8A022048C323B0BED19A988BDBEFA974B6DE8AA9DCAE250AA82BBD1221787032A864E5"
}
}
] ,
"SigningPubKey" : "" ,
"TransactionType" : "TrustSet" ,
"hash" : "A94A6417D1A7AAB059822B894E13D322ED3712F7212CE9257801F96DE6C3F6AE"
}
}
}