payments.createOnrampSession
Signature
Section titled “Signature”payments.createOnrampSession#a2197cf6 flags:# provider:string crypto_currency:string address:string payment_method:flags.0?string base_currency:flags.1?string base_amount:flags.2?string memo:flags.3?string theme:flags.4?string success_return_url:flags.5?string fail_return_url:flags.6?string crypto_amount:flags.7?string = OnrampSession;Result type
Section titled “Result type”OnrampSession
Parameters
Section titled “Parameters”| Name | Type | Flag | Default | Description |
|---|---|---|---|---|
| flags | # | flag word | — | |
| provider | string | — | — | |
| crypto_currency | string | — | — | |
| address | string | — | — | |
| payment_method | flags.0?string | flags.0 | — | |
| base_currency | flags.1?string | flags.1 | — | |
| base_amount | flags.2?string | flags.2 | — | |
| memo | flags.3?string | flags.3 | — | |
| theme | flags.4?string | flags.4 | — | |
| success_return_url | flags.5?string | flags.5 | — | |
| fail_return_url | flags.6?string | flags.6 | — | |
| crypto_amount | flags.7?string | flags.7 | — |
| Parameter | Bit | Meaning |
|---|---|---|
| payment_method | 0 | Controlled by flags; present when this bit is set. |
| base_currency | 1 | Controlled by flags; present when this bit is set. |
| base_amount | 2 | Controlled by flags; present when this bit is set. |
| memo | 3 | Controlled by flags; present when this bit is set. |
| theme | 4 | Controlled by flags; present when this bit is set. |
| success_return_url | 5 | Controlled by flags; present when this bit is set. |
| fail_return_url | 6 | Controlled by flags; present when this bit is set. |
| crypto_amount | 7 | Controlled by flags; present when this bit is set. |
Python binding
Section titled “Python binding”from miniproto.raw.functions import PaymentsCreateOnrampSessionPublic access: miniproto.raw.functions.PaymentsCreateOnrampSession.
Result family
Section titled “Result family”RPC errors
Section titled “RPC errors”No RPC errors are mapped to this method by the pinned error database.
Accepted types
Section titled “Accepted types”No non-primitive type relationships were found.
Returned types
Section titled “Returned types”OnrampSession
Known selected constructors: onrampSession