Skip to content

How to make encode with uint256[10] in php #50

@tuandat77

Description

@tuandat77

I have file json with method name addTransaction,please help me with encodeFunction
data abi.json :
[ {
"constant": false,
"inputs": [
{
"internalType": "string",
"name": "_uid",
"type": "string"
},
{
"internalType": "string",
"name": "_username",
"type": "string"
},
{
"internalType": "string",
"name": "_ref_by",
"type": "string"
},
{
"internalType": "uint256",
"name": "_amount",
"type": "uint256"
},
{
"internalType": "string",
"name": "_merchant",
"type": "string"
},
{
"internalType": "string",
"name": "_subid",
"type": "string"
},
{
"internalType": "uint256",
"name": "_release",
"type": "uint256"
},
{
"internalType": "uint256[10]",
"name": "_ref_rates",
"type": "uint256[10]"
}
],
"name": "addTransaction",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
} ]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions