Skip to main content

Everscale

WC JSON-RPC for Everscale

ever_processMessage

Creates message, sends it to the network, monitors its processing and returns transaction's id.

Parameters

  1. source_address - message source address;
  2. value - amount of coins attached to the message;
  3. bounce - should the answer message be generated in case of an error;
  4. dest_address - message destination address;
  5. dest_payload - message destination payload;
  6. dest_abi - destination contract ABI;

Returns

  1. tx_id - transaction's id in blockchain;

Example

// Request
{
"id": 1,
"jsonrpc": "2.0",
"method": "ever_processMessage",
"params": {
"source_address": "0:695e42...b8d",
"value": 1000000000,
"bounce": False,
"dest_address": "0:b38d96...708",
"dest_payload": "",
"dest_abi": ""
}
}

// Result
{
"id": 1,
"jsonrpc": "2.0",
"result": {
"tx_id": "743e1c0046b82a48a2cf8cbe9a2059ce6f3862cfae377c77d9f1b4efd88d7acb"
}
}

ever_signMessage

Message that can then be sent to the blockchain.

Parameters

  1. source_address - message source address;
  2. value - amount of coins attached to the message;
  3. bounce - should the answer message be generated in case of an error;
  4. dest_address - message destination address;
  5. dest_payload - message destination payload;
  6. dest_abi - destination contract ABI;

Returns

  1. signed_ext_message - signed external message;

Example

// Request
{
"id": 1,
"jsonrpc": "2.0",
"method": "ever_signMessage",
"params": {
"source_address": "0:695e42...b8d",
"value": 1000000000,
"bounce": False,
"dest_address": "0:b38d96...708",
"dest_payload": "",
"dest_abi": ""
}
}

// Result
{
"id": 1,
"jsonrpc": "2.0",
"result": {
"signed_ext_message": "c0b0996a9f0ea8e472041857ff2da9cf8086a78603f823a7170891f43a217ff1"
}
}

ever_sign

Signature of a random message for authentication.

Parameters

  1. source_address - message source address;
  2. message - some message in base64;

Returns

  1. signature - string signature in base64;
  2. pubkey - public key of the wallet's address;

Example

// Request
{
"id": 1,
"jsonrpc": "2.0",
"method": "ever_sign",
"params": {
"source_address": "0:695e42...b8d",
"message": "some message in base64"
}
}

// Result
{
"id": 1,
"jsonrpc": "2.0",
"result": {
"signature": "0xa3f207... in base64",
"pubkey": "0x07bf94e...37e3"
}
}