Skip to main content

Execute a nano contract method.

POST 

/wallet/nano-contracts/execute

Execute a nano contract method.

Request

Header Parameters

    x-wallet-id stringrequired

    Define the key of the corresponding wallet it will be executed the request.

Body

required

Data to execute the nano contract method.

    nc_id stringrequired

    ID of the nano contract that will have the method executed.

    method stringrequired

    Method to execute in the nano contract object.

    address stringrequired

    Address caller that will sign the nano contract transaction.

    data

    object

    required

    Data of the method for the nano contract.

    actions

    object[]

    List of actions for the initialize method.

  • Array [

  • type stringrequired

    Type of action: 'deposit' or 'withdrawal'.

    token stringrequired

    Token of the action.

    amount integerrequired

    Amount to deposit or withdrawal.

    address string

    Required for withdrawal, and it's the address to send the token to. For deposit is optional and it's the address to get the utxo from.

    changeAddress string

    Address to send the change amount. Only used for deposit and it's optional.

  • ]

  • args

    object[]

    List of arguments for the method.

  • Array [

  • oneOf

    string

  • ]

Responses

Transaction for the nano contract method.

Schema

    any

Loading...