Helper endpoint that allows pre-validation if a deposit of certain resources to a given account can succeed or not. It is only meant for pre-validation usage, it does not guarantee that execution will succeed.
POST /transaction/account-deposit-pre-validation HTTP/1.1 Host: xrd-gateway.nownodes.io Content-Type: application/json Accept: */* Content-Length: 83 { "account_address": "<account-address>", "resource_addresses": [ "<resource-address>" ] }
Pre-validation response, including all deciding factors that were used to generate that response.
{ "ledger_state": { "network": "<network-name>", "state_version": 1, "proposer_round_timestamp": "text", "epoch": 1, "round": 1 }, "allows_try_deposit_batch": true, "resource_specific_behaviour": [ { "resource_address": "text", "allows_try_deposit": true } ], "deciding_factors": { "is_badge_authorized_depositor": true, "default_deposit_rule": "Accept", "resource_specific_details": [ { "resource_address": "text", "vault_exists": true, "is_xrd": true, "resource_preference_rule": "Allowed" } ] } }