Miscellaneous
#
Latest Block NumberReturns the latest block number.
#
Request#
Example Request#
Responseint
- Latest block number
#
Example Response#
Relay transactionRelays a raw transaction to the blockchain.
#
Request#
Data ParametersName | Type | Required | Description |
---|---|---|---|
rawTransaction | string | YES | RLP encoded signed transaction |
#
Example Request#
Responsestring
- hash of transaction if relayed successfully
#
Example Response#
Status of TransactionGet the status of a transaction from a transaction hash.
#
Request#
Example Request#
ResponseAttribute | Type | Description |
---|---|---|
status | string | one of success, failure, pending, or not found |
#
Example Response#
Fees for Meta TransactionGet a list of the fees the delegate will accept for the given metaTransaction.
#
Request#
Data ParametersName | Type | Required | Description |
---|---|---|---|
metaTransaction | object | YES | MetaTransaction object |
The MetaTransaction object must have the following fields:
Name | Type | JSON Type | Description |
---|---|---|---|
to | address | string - hex-encoded prefixed with "0x" | the address on which the call of the meta transaction is happening |
from | address | string - hex-encoded prefixed with "0x" | address of identity contract |
chainId | int | number | chain id of the target blockchain of the meta transaction |
version | int | number | version of the identity contract for the meta transaction |
value | BigInteger | string | the amount of wei to be sent along from 'from' to 'to' |
data | bytes | string - hex-encoded prefixed with "0x" | the data object encoding the function call including arguments |
gasLimit | BigInteger | string | the limit on gas used by meta transaction and paid by user |
nonce | int | number | nonce used for replay protection |
timeLimit | int | number | time limit after which meta transaction is invalid; 0 means unlimited |
operationType | int | number | type of applied operation: 0 CALL, 1 DELEGATECALL, 2 CREATE, 3 CREATE2 |
#
Example Request#
ResponseAttribute | Type | Description |
---|---|---|
baseFee | string | flat fees paid by the user |
gasePrice | string | fee per gas used by the meta transaction to be paid by the user |
feeRecipient | string | address of the recipient of the fees |
currencyNetworkOfFees | string | the currency network used to pay the fees of the meta transaction |
#
Example Response#
Effective Delegation Fees of TransactionGet the delegation fees that were applied with given transaction.
#
Request#
Data ParametersName | Type | Required | Description |
---|---|---|---|
transactionHash | string | Yes | Hash of transaction responsible for delegation fees |
#
Example Request#
ResponseReturn a list of all fee payment found in the transaction.
Attribute | Type | JSON Type | Description |
---|---|---|---|
feeSender | address | string | address of the payer of the fees |
feeRecipient | address | string | address of the recipient of the fee |
totalFee | BigInteger | string | total value of the fee in currency network |
currencyNetworkOfFees | address | string | address of the currency network of the fee |
#
Example Response#
Status of meta transactionGet the status of a meta transaction for an identity.
#
Request#
Example Request#
ResponseAttribute | Type | Description |
---|---|---|
status | string | one of success, failure, pending, or not found |
#
Example Response#
Relay meta transactionRelays a meta transaction to the blockchain.
#
Request#
Data ParametersName | Type | Required | Description |
---|---|---|---|
metaTransaction | object | YES | MetaTransaction object |
The MetaTransaction object must have the following fields:
Name | Type | JSON Type | Description |
---|---|---|---|
to | address | string - hex-encoded prefixed with "0x" | the address on which the call of the meta transaction is happening |
from | address | string - hex-encoded prefixed with "0x" | address of identity contract |
chainId | int | number | chain id of the target blockchain of the meta transaction |
version | int | number | version of the identity contract for the meta transaction |
value | BigInteger | string | the amount of wei to be sent along from 'from' to 'to' |
data | bytes | string - hex-encoded prefixed with "0x" | the data object encoding the function call including arguments |
baseFee | BigInteger | string | the base fees the delegate will receive for the meta transaction |
gasPrice | BigInteger | string | the gas price to be paid to the delegate by user |
gasLimit | BigInteger | string | the limit on gas used by meta transaction and paid by user |
feeRecipient | address | string - hex-encoded prefixed with "0x" | the address to which fees will be paid (0 means msg.sender) |
currencyNetworkOfFees | address | string - hex-encoded prefixed with "0x" | the currency network used to pay the fees of the meta transaction |
nonce | int | number | nonce used for replay protection |
timeLimit | int | number | time limit after which meta transaction is invalid; 0 means unlimited |
operationType | int | number | type of applied operation: 0 CALL, 1 DELEGATECALL, 2 CREATE, 3 CREATE2 |
signature | bytes | string - hex-encoded prefixed with "0x" | 65 bytes containing concatenated. v,r,s of the signature |
#
Example Request#
Response#
Deploy identity contractThis endpoint can be used to deploy an identity contract to the blockchain.
#
Request#
Data ParametersName | Type | JSON Type | Required | Description |
---|---|---|---|---|
factoryAddress | address | string - hex-encoded prefixed with "0x" | YES | Address of the owner of the identity |
implementationAddress | address | string - hex-encoded prefixed with "0x" | YES | Address of the owner of the identity |
signature | bytes | string - hex-encoded prefixed with "0x" | YES | Signature of owner on factory and implementation |
#
Example Request#
ResponseThe endpoint returns an object with the following fields:
Name | Type | JSON Type | Description |
---|---|---|---|
identity | address | string - hex-encoded prefixed with "0x" | the address of the deployed identity contract |
nextNonce | number | number | the next available nonce |
balance | BigInteger | string | contracts balance in wei |
implementationAddress | address | string - hex-encoded prefixed with "0x" | Address of the implementation referenced by the identity |
#
Example Response#
Get authorized identity factories#
Request#
Example Request#
Responsestring[]
: list of known identity factories through which identity deployment is possible
#
Example Response#
Get identity information#
Request#
URL ParametersName | Type | Required | Description |
---|---|---|---|
identity | string prefixed with "0x" | YES | the address of the deployed identity contract |
#
Example Request#
ResponseThe endpoint returns an object with the following fields:
Name | Type | JSON Type | Description |
---|---|---|---|
identity | address | string - hex-encoded prefixed with "0x" | the address of the deployed identity contract |
nextNonce | number | number | the next available nonce |
balance | BigInteger | string | contracts balance in wei |
implementationAddress | address | string - hex-encoded prefixed with "0x" | Address of the implementation referenced by the identity |
contracts balance in wei |
#
Example Response#
Get relay version#
Request#
Example Request#
Responsestring
: relay version