-
What does recipientMainAddress mean? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 4 replies
-
{"jsonrpc":"2.0","error":{"code":-32002,"message":"Transaction simulation failed: Error processing Instruction 0: Provided seeds do not result in a valid address","data":{"accounts":null,"err":{"InstructionError":[0,"InvalidSeeds"]},"logs":["Program ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL invoke [1]","Program log: Error: Associated address does not match seed derivation","Program ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL consumed 10072 of 200000 compute units","Program ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL failed: Provided seeds do not result in a valid address"]}},"id":7} |
Beta Was this translation helpful? Give feedback.
-
For a main address (which can hold SOL), for a given token, there is a 'token account' that can hold that token. The token address can be derived deterministically from the main address and the token mint address, see |
Beta Was this translation helpful? Give feedback.
-
recipientMainAddress is the wallet address of the intended 3rd party recipient |
Beta Was this translation helpful? Give feedback.
-
Thank you for answering the question has been resolved, |
Beta Was this translation helpful? Give feedback.
Thank you for answering the question has been resolved,
recipientTokenAddress = createAssociatedAccountAddress(to,contractAddress)