How can I call move entry function with vector<u256> parameter in rust-sdk? #135
-
I have a move entry function like this
how can I pass the vector parameter to this function in rust-sdk? I cannot find any documents about how to use it :(( |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hello, To construct the transaction in rust, we have to build the payload of the transaction to construct the The definition of
To construct your args
Then build the payload
Then you can use the SDK to sign via I will look into creating better documentation for use and update you about any existing resources we have |
Beta Was this translation helpful? Give feedback.
Hello,
To construct the transaction in rust, we have to build the payload of the transaction to construct the
TransactionBuilder
.https://github.com/aptos-labs/aptos-core/blob/3ae4ec1c3ed23b9d78ebcd78c28cdede0768c967/sdk/src/transaction_builder.rs#L27
The definition of
TransactionPayload
can be find here - https://github.com/aptos-labs/aptos-core/blob/3ae4ec1c3ed23b9d78ebcd78c28cdede0768c967/types/src/transaction/mod.rs#L409