post https://api.infstones.com/neo/mainnet/
Transfers from the specified address to the destination address.
Before you can invoke this method, wallet must be open first.
Parameters
Object Name | Required | Type | Detail |
---|---|---|---|
ASSET ID | ✅ | String | The NEP-17 contract script hash. |
FROM ADDRESS | ✅ | String | The transferring address. |
TO ADDRESS | ✅ | String | The destination address. |
VALUE | ✅ | Integer | The transfer amount. |
SIGNERS | ❌ | Array | List of objects containing contract signature accounts. |
The asset ID for NEO is 0xef4073a0f2b305a38ec4050e4d3d28bc40ea63f5
The asset ID for Gas is 0xd2a4cff31913016155e38e474a2c06d08be276cf
VALUE
must be whole number
"params": [
"0xef4073a0f2b305a38ec4050e4d3d28bc40ea63f5",
"NSk8xEBm3FNAFDueUf21cMugkWidJn5N1n",
"NUkaNyPbML2QYfxK99WqZYpR8rR4CyUoth",
1
]
Result
The transaction details.
Example
Request
curl <your-endpoint> \
-X POST \
-H "Content-Type: application/json" \
-d '{"jsonrpc": "2.0", "id": 1, "method": "sendfrom", "params": ["0xef4073a0f2b305a38ec4050e4d3d28bc40ea63f5", "NSk8xEBm3FNAFDueUf21cMugkWidJn5N1n", "NUkaNyPbML2QYfxK99WqZYpR8rR4CyUoth", 1]}'
Return
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"hash": "0x180a0f1763d5ddfdea8046ef00dc2fc574f82b33b30fb05437e24200a1b9f37c",
"size": 245,
"version": 0,
"nonce": 1791634907,
"sender": "NSk8xEBm3FNAFDueUf21cMugkWidJn5N1n",
"sysfee": "997778",
"netfee": "122852",
"validuntilblock": 1352943,
"signers": [
{
"account": "0xcb285efa97f33e48e1bf47cf78790e25aedfec4a",
"scopes": "CalledByEntry"
}
],
"attributes": [],
"script": "CxEMFGDyWbQtBPLPinZ0/0KBEepy93AkDBRK7N+uJQ55eM9Hv+FIPvOX+l4oyxTAHwwIdHJhbnNmZXIMFPVj6kC8KD1NDgXEjqMFs/Kgc0DvQWJ9W1I5",
"witnesses": [
{
"invocation": "DECMJuFmnfi8GfCgp6gCau2oRDTAUfjFel54YGXbjK2TGv4WCLpy3mPRAVK9rUXg0bQ1BYTIiASRRRMKbS5EkmQb",
"verification": "DCED3k3+UTmOhKZSHB3DKihzMPPA7YvgkWC0V6AW33D9EDhBVuezJw=="
}
]
}
}