Skip to main content

Invoke Host Function Object

Invokes a Soroban smart contract function.

  • ATTRIBUTEDATA TYPE

    DESCRIPTION

  • functionstring

    The type of InvokeHostFunctionOp which can be one of HostFunctionTypeHostFunctionTypeInvokeContract, HostFunctionTypeHostFunctionTypeCreateContract, or HostFunctionTypeHostFunctionTypeUploadContractWasm.

  • parametersarray

    An array of parameters passed into the Soroban smart contract function (only present when the type of InvokeHostFunctionOp is HostFunctionTypeHostFunctionTypeInvokeContract).

    Show child attributes
  • typestring

    The type of the function parameter.

  • valuestring

    The base64 encoding of the XDR value of the parameter.

  • addressstring

    The address of the newly created contract (only present when the type of InvokeHostFunctionOp is HostFunctionTypeHostFunctionTypeCreateContract).

  • saltstring

    The salt used to create the contract (only present when the type of InvokeHostFunctionOp is HostFunctionTypeHostFunctionTypeCreateContract).

  • asset_balance_changesarray

    An array of Stellar Asset Contract balance update events that occurred as a side effect of the InvokeHostFunctionOp (only present when the type of InvokeHostFunctionOp is HostFunctionTypeHostFunctionTypeInvokeContract and the invocation is on a Stellar Asset Contract).

    Show child attributes
  • asset_typestring

    The type of asset being sent. Either native, credit_alphanum4, or credit_alphanum12.

  • codestring

    The code for the asset being sent. Appears if the asset_type is not native.

  • issuerstring

    The Stellar address of the issuer of the asset being sent. Appears if the asset_type is not native.

  • typestring

    The type of the Stellar Asset Contract event. It can be one of transfer, mint, clawback, or burn.

  • fromstring

    The Stellar address of the sender (can be a contract or a Stellar account). This field is not present when type is mint.

  • tostring

    The Stellar address of the recipient (can be a contract or a Stellar account). This field is only present when type is transfer or mint.

  • amountstring

    The amount sent.

  • Example
    {
    "id": "1109896858714113",
    "paging_token": "1109896858714113",
    "transaction_successful": true,
    "source_account": "GBVAL7WM2G3NUTDIT5EYE4BMDRNLRQWI4RDGSVFCPXHPQRSSPEUQ2PNK",
    "type": "invoke_host_function",
    "type_i": 24,
    "created_at": "2024-02-22T10:50:50Z",
    "transaction_hash": "1768d762bedf3129a00ec095d1aaed4c378dc3f55250758ed5008992b303303b",
    "function": "HostFunctionTypeHostFunctionTypeInvokeContract",
    "parameters": [
    {
    "value": "AAAAEgAAAAHJOCa1uNUk//1ibktaJMY8Q0o5+CSWzWTw16NBiWFiGA==",
    "type": "Address"
    },
    {
    "value": "AAAADwAAAAtzZXRfcmVjb3JkcwA=",
    "type": "Sym"
    },
    {
    "value": "AAAAEAAAAAEAAAACAAAAEAAAAAEAAAACAAAADwAAAAVPdGhlcgAAAAAAAA8AAAADVVNEAAAAABAAAAABAAAAAgAAAA8AAAAFT3RoZXIAAAAAAAAPAAAAA0VVUgA=",
    "type": "Vec"
    },
    {
    "value": "AAAAEAAAAAEAAAACAAAAEQAAAAEAAAACAAAADwAAAAVwcmljZQAAAAAAAAoAAAAAAAAAAAAAAAAAEcMIAAAADwAAAAl0aW1lc3RhbXAAAAAAAAAFAAAAAGXXJpwAAAARAAAAAQAAAAIAAAAPAAAABXByaWNlAAAAAAAACgAAAAAAAAAAAAAAAAAQXTQAAAAPAAAACXRpbWVzdGFtcAAAAAAAAAUAAAAAZdcmnA==",
    "type": "Vec"
    }
    ],
    "address": "",
    "salt": "",
    "asset_balance_changes": []
    }