@@ -276,7 +276,7 @@ Response Example
276276{
277277 "jsonrpc":"2.0",
278278 "result":{
279- "hash":"0x56642f04d519ae3262c7ba6facf1c5b11450ebaeb7955337cfbc45420d573077 ",
279+ "hash":"cccqzn9jjm3j6qg69smd7cn0eup4w7z2yu9myd6c4d70x56642f04d519ae3262c7ba6facf1c5b11450ebaeb7955337cfbc45420d573077 ",
280280 "number":1
281281 },
282282 "id":null
@@ -663,7 +663,7 @@ Response Example
663663Gets a nonce of an account of the given address, at state of the given blockNumber.
664664
665665Params:
666- 1 . address: ` H160 `
666+ 1 . address: ` PlatformAddress `
667667 2 . block number: ` number ` | ` null `
668668
669669Return Type: ` U256 `
@@ -674,7 +674,7 @@ Request Example
674674```
675675 curl \
676676 -H 'Content-Type: application/json' \
677- -d '{"jsonrpc": "2.0", "method": "chain_getNonce", "params": ["0xa6594b7196808d161b6fb137e781abbc251385d9 ", null], "id": null}' \
677+ -d '{"jsonrpc": "2.0", "method": "chain_getNonce", "params": ["cccqzn9jjm3j6qg69smd7cn0eup4w7z2yu9myd6c4d7 ", null], "id": null}' \
678678 localhost:8080
679679```
680680
@@ -691,7 +691,7 @@ Response Example
691691Gets a balance of an account of the given address, at the state of the given blockNumber.
692692
693693Params:
694- 1 . address: ` H160 `
694+ 1 . address: ` PlatformAddress `
695695 2 . block number: ` number ` | ` null `
696696
697697Return Type: ` U256 `
@@ -702,7 +702,7 @@ Request Example
702702```
703703 curl \
704704 -H 'Content-Type: application/json' \
705- -d '{"jsonrpc": "2.0", "method": "chain_getBalance", "params": ["0xa6594b7196808d161b6fb137e781abbc251385d9 ", null], "id": null}' \
705+ -d '{"jsonrpc": "2.0", "method": "chain_getBalance", "params": ["cccqzn9jjm3j6qg69smd7cn0eup4w7z2yu9myd6c4d7 ", null], "id": null}' \
706706 localhost:8080
707707```
708708
@@ -719,7 +719,7 @@ Response Example
719719Gets the regular key of an account of the given address, at the state of the given blockNumber.
720720
721721Params:
722- 1 . address: ` H160 `
722+ 1 . address: ` PlatformAddress `
723723 2 . block number: ` number ` | ` null `
724724
725725Return Type: ` H512 ` - 512-bit public key
@@ -730,7 +730,7 @@ Request Example
730730```
731731 curl \
732732 -H 'Content-Type: application/json' \
733- -d '{"jsonrpc": "2.0", "method": "chain_getRegularKey", "params": ["0xa6594b7196808d161b6fb137e781abbc251385d9 ", null], "id": null}' \
733+ -d '{"jsonrpc": "2.0", "method": "chain_getRegularKey", "params": ["cccqzn9jjm3j6qg69smd7cn0eup4w7z2yu9myd6c4d7 ", null], "id": null}' \
734734 localhost:8080
735735```
736736
@@ -850,7 +850,7 @@ Gets coinbase's account id.
850850
851851Params: No parameters
852852
853- Return Type: ` H160 ` | ` null `
853+ Return Type: ` PlatformAddress ` | ` null `
854854
855855Request Example
856856```
@@ -864,7 +864,7 @@ Response Example
864864```
865865{
866866 "jsonrpc":"2.0",
867- "result":"0xa6594b7196808d161b6fb137e781abbc251385d9 ",
867+ "result":"cccqzn9jjm3j6qg69smd7cn0eup4w7z2yu9myd6c4d7 ",
868868 "id":null
869869}
870870```
@@ -874,7 +874,7 @@ Executes the transactions and returns the current shard root and the changed sha
874874
875875Params:
876876 1 . transactions: ` Transaction[] `
877- 2 . sender: ` H160 `
877+ 2 . sender: ` PlatformAddress `
878878
879879Return Type: ` ChangeShard[] `
880880
@@ -884,7 +884,7 @@ Request Example
884884```
885885 curl \
886886 -H 'Content-Type: application/json' \
887- -d '{"jsonrpc": "2.0", "method": "chain_executeTransactions", "params": [[{"type":"assetMint","data":{"networkId":"17","shardId":0,"worldId":0,"metadata":"{\"name\":\"Gold\",\"description\":\"An asset example\",\"icon_url\":\"https://gold.image/\"}","output":{"lockScriptHash":"0xf42a65ea518ba236c08b261c34af0521fa3cd1aa505e1c18980919cb8945f8f3","parameters":[],"amount":10000},"registrar":null,"nonce":0}}, {"type":"assetMint","data":{"networkId":"17","shardId":1,"worldId":0,"metadata":"{\"name\":\"Gold\",\"description\":\"An asset example\",\"icon_url\":\"https://gold.image/\"}","output":{"lockScriptHash":"0xf42a65ea518ba236c08b261c34af0521fa3cd1aa505e1c18980919cb8945f8f3","parameters":[],"amount":10000},"registrar":null,"nonce":0}}], "0xa6594b7196808d161b6fb137e781abbc251385d9 "], "id": null}' \
887+ -d '{"jsonrpc": "2.0", "method": "chain_executeTransactions", "params": [[{"type":"assetMint","data":{"networkId":"17","shardId":0,"worldId":0,"metadata":"{\"name\":\"Gold\",\"description\":\"An asset example\",\"icon_url\":\"https://gold.image/\"}","output":{"lockScriptHash":"0xf42a65ea518ba236c08b261c34af0521fa3cd1aa505e1c18980919cb8945f8f3","parameters":[],"amount":10000},"registrar":null,"nonce":0}}, {"type":"assetMint","data":{"networkId":"17","shardId":1,"worldId":0,"metadata":"{\"name\":\"Gold\",\"description\":\"An asset example\",\"icon_url\":\"https://gold.image/\"}","output":{"lockScriptHash":"0xf42a65ea518ba236c08b261c34af0521fa3cd1aa505e1c18980919cb8945f8f3","parameters":[],"amount":10000},"registrar":null,"nonce":0}}], "cccqzn9jjm3j6qg69smd7cn0eup4w7z2yu9myd6c4d7 "], "id": null}' \
888888 localhost:8080
889889```
890890
0 commit comments