Offramp API Integration.
Offramp Quotation
Quotation - Crypto input
1 min
tab examples url https stg api onmeta in v1 quote sell name quotation by fiat amount method post request pathparameters queryparameters headerparameters kind required name x api key type string children description api key from dashboard bodydataparameters kind required name selltokensymbol type string description sell token symbol example matic kind required name selltokenaddress type string children description smart contract address for sell token mentioned above kind required name chainid type number children description blockchain id example 80001 for polygon testnet kind required name fiatcurrency type string children description currency symbol example inr kind required name selltokenamount type number children description currency quantity example 10 for 10 token to sell kind required name senderaddress type string children description wallet address of the sender formdataparameters results languages id jcfit4zs2foobmlbavxlh code n success true n data n t t selltokens 1 234 n t t conversionrate 82 21 n t t transactionfee 3 n t t gasfee 7 000 n t t fiatcurrency inr n fiatamount 100 n t n t error n language 200 customlabel id laaa3vi6kmyeefvs ad8o code n success false n error n code 400 n message bad request n n language 400 customlabel id rcs27gusj0r6pmqfpw3c code n success false n error n code 401 n message unauthorized to access n n language 401 customlabel selectedlanguageid jcfit4zs2foobmlbavxlh examples languages id tggrrzsphfjhkg7 inoni language curl code curl location request post https stg api onmeta in v1 quote sell n header accept application json n header x api key string n data raw selltokensymbol string selltokenaddress string chainid number fiatcurrency string selltokenamount number senderaddress string customlabel id 9nu5r2pnfpdev5m jhx y language nodejs code var request require request ; nvar options n method post n url https stg api onmeta in v1 quote sell n headers n accept application json n x api key string n n body selltokensymbol string selltokenaddress string chainid number fiatcurrency string selltokenamount number senderaddress string n n ; nrequest options function error response n if error throw new error error ; n console log response body ; n ; n customlabel id uuvvluemhp5rwy77vd pr language javascript code var myheaders new headers ; nmyheaders append accept application json ; nmyheaders append x api key string ; n nvar raw selltokensymbol string selltokenaddress string chainid number fiatcurrency string selltokenamount number senderaddress string ; n nvar requestoptions n method post n headers myheaders n body raw n redirect follow n ; n nfetch https stg api onmeta in v1 quote sell requestoptions n then response response text n then result console log result n catch error console log error error ; customlabel id 7qkq2uzk9zz2bd4gga1cc language python code import requests n nurl https stg api onmeta in v1 quote sell n npayload selltokensymbol string selltokenaddress string chainid number fiatcurrency string selltokenamount number senderaddress string nheaders n accept application json n x api key string n n nresponse requests request post url headers headers data payload n nprint response text n customlabel id 6wjfvisqi qgm8eqfezre language ruby code require uri nrequire net http n nurl uri https stg api onmeta in v1 quote sell n nhttps net http new url host url port nhttps use ssl true n nrequest net http post new url nrequest accept application json nrequest x api key string nrequest body selltokensymbol string selltokenaddress string chainid number fiatcurrency string selltokenamount number senderaddress string n nresponse https request request nputs response read body n customlabel selectedlanguageid tggrrzsphfjhkg7 inoni description offramp quotation by crypto amount currentnewparameter label body parameter value bodydataparameters sample request body { "selltokensymbol" "matic", "selltokenaddress" "0x9c3c9283d3e44854697cd22d3faa240cfb032889", "chainid" 80001, "fiatcurrency" "inr", "selltokenamount" 100, "senderaddress" "0xcdf10bc7a1fae391ff18f4c220ace912547971cc" }