diff --git a/docs/api/naj-quick-reference.md b/docs/api/naj-quick-reference.md index 07d9f559a84..3b5a4a551d7 100644 --- a/docs/api/naj-quick-reference.md +++ b/docs/api/naj-quick-reference.md @@ -455,6 +455,23 @@ await contract.method_name( ); ``` + + + +```js +await contract.method_name( + { + callbackUrl: 'https://example.com/callback', // callbackUrl after the transaction approved (optional) + meta: 'some info', // meta information NEAR Wallet will send back to the application. `meta` will be attached to the `callbackUrl` as a url search param + args: { + arg_name: "value" // argument name and value - pass empty object if no args required + }, + gas: 300000000000000, // attached GAS (optional) + amount: 1000000000000000000000000 // attached deposit in yoctoNEAR (optional) + } +); +``` +